package com.wocao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.Building;
import com.wocao.entity.ZyRoom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.io.Serializable;
import java.util.List;

/**
 * 房间  Mapper 接口
 *
 * @since 2023-12-03
 */
public interface ZyRoomMapper extends BaseMapper<ZyRoom> {


    /**
     * 根据楼栋名称，单元名称，房屋状态模糊查询所有楼栋信息
     *
     * @return
     */
    Page<ZyRoom> selectRoomsByLike(Page<ZyRoom> zyRoomPage, String buildingId, String unitId, String roomStatus,String communityId);

    /**
     * 查询房屋楼栋和单元
     * @return
     */

    List<Building> selectBuildingAndUnit();

    @Override
    ZyRoom selectById(Serializable id);
}
